import { download, downloadExcel} from '@/utils/request'
import request from '@/utils/request'

const prevUrl = '/wms/assetItem/';

export default {
  // 查询资产清单表列表
  list(query, pageReq) {
    return request({
      url: '/wms/assetItem/list',
      method: 'post',
      data: query,
      params: pageReq
    })
  },
  // 修改资产清单表
  updateAssetItem(data) {
    return request({
      url: '/wms/assetItem',
      method: 'put',
      data: data
    })
  },
  // 导出
  export(query) {
    return request({
      url: `${prevUrl}export`,
      method: 'get',
      params: query
    })
  },
  exportImportTemplate() {
    return request({
      url: `${prevUrl}exportImportTemplate`,
    })

  }
}

